package com.example.demo.handler;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.dto.FeedbackDto;
import com.example.demo.service.ComboService;
import com.example.demo.service.FeedbackService;
import com.woniuxy.movice.entity.Combo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api("swagger测试")
@RestController
@RequestMapping(value="/feedback")
public class FeedbackController {

	@Resource
	private FeedbackService feedbackService;
	
	@ApiOperation(value="获得所有未处理反馈信息",notes="返回所有未处理反馈")
    @RequestMapping(value="/getAllfeedback",method=RequestMethod.GET)
    public List<FeedbackDto> getAllfeedback(){
        return feedbackService.getAllfeedback();
	}
	
	@ApiOperation(value="获得所有反馈信息",notes="返回所有反馈")
    @RequestMapping(value="/solveFeedback",method=RequestMethod.POST)
	public String solveFeedback(int fid){
		 return feedbackService.solveFeedback(fid);
	}
}
